<?php
class ShoppingCart extends iPortlet
{
	public $title = 'Shopping Cart';
	public function init()
	{
		parent::init();
	}
	public function run()
	{
		$products = Shop::getCartContent();
		if(!empty($products)){
			$this->render('default', array(
					'products' => $products
			));
		}else{
			echo '<div id="shopping-cart">Bạn chưa có sản phẩm nào</div>';
		}
		
		return parent::run();
	}
}